<template>
	<view>
		<view class="smart-panel-head">
			<view class="smart-panel-head-title">navigator，链接</view>
		</view>
		<view class="smart-padding-wrap">
			 <navigator url="/pages/newpage/newpage" hover-class="navigator-hover">
				 <button type="default">跳转到新页面</button>
			 </navigator>
			 <navigator url="/pages/newpage/newpage?title=redirect" open-type="redirect" hover-class="other-navigator-hover">
				 <button type="default">在当前页打开</button>
			 </navigator>
			 <navigator url="/pages/tabBar/api/api" open-type="switchTab" hover-class="other-navigator-hover">
				 <button type="default">跳转到tab页面</button>
			 </navigator>
			 <navigator url="/pages/newpage2/newpage2" hover-class="navigator-hover">
				 <button type="default">页面生命周期</button>
			 </navigator>
			 
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title:'navigator',
				user:"huangsujing",
				uid:455555
			}
		},
		methods: {
			goNewPage(){
				uni.navigateTo({
					url:"/pages/newpage/newpage?User="+this.user+"&userid="+this.uid
				})
			}
		}
	}
</script>

<style>

</style>
